package com.yu.waterstation.app.moudles.address.service;

import com.yu.waterstation.common.entity.app.Address;
import com.yu.waterstation.common.entity.app.dto.AddressDTO;

import java.util.List;
import java.util.Map;

public interface AddressService {

    // 地址的详细信息
    AddressDTO getAddressDetail(Integer id);

    /*
     {
        "二区5舍" : [address1, address2, address3],
        "三区22舍": [address1]
     }
     */
    /**
     * 获取地址选择树
     *
     * @return 结构 Map<String, Map<String, List<Address>>>
     */
    Map<String, List<Address>> getAddressTree();

    // 所有楼舍
    List<Object> getAllDorms( );


}
